package io;
import java.io.File;
public class Demo2 {
public static void main(String[] args) {
    File file = new File("d:/test.txt");
    System.out.println(file.exists());
    System.out.println(file.isDirectory());
    System.out.println(file.isFile());
}
}
